<include file="public+header">

{script}
$(document).ready(function() {
	$("#configs > ul").tabs();
});
{/script}

   <!-- 标题  -->
   <div class="title"><lang>系统配置设置</lang></div>

  <!-- 正文 -->
  <div id="content" class="content">

      <div class="note"><p class="i"><lang>允许/禁止的 Email 地址只需填写 Email 的域名部分，每行一个域名，例如 @hotmail.com</lang></p></div>

      <div id="configs">
      <ul>
        <li><a href="#tab_base"><span><lang>基本设置</lang></span></a></li>
        <li><a href="#tab_register"><span><lang>注册设置</lang></span></a></li>
        <li><a href="#tab_email"><span><lang>邮件设置</lang></span></a></li>
      </ul>
    </div>

    <form action="{:G::U('option/update_config')}" method="post">
    <div id="tab_base">
      <table class="form-table full">
          <tr>
            <th valign="top"><label for="admineverynum"><lang>后台数据显示数量</lang>:</label></th>
            <td><input type="text" name="configs[admineverynum]" id="admineverynum" class="field" size="40"  value="{$arrOptions['admineverynum']}"/>
            <div class="description"><lang>后台每页数据列表显示数量。</lang></div></td>
          </tr>
          <tr>
            <th valign="top"><label for="dataformat"><lang>日期格式</lang>:</label></th>
            <td><input type="text" name="configs[dateformat]" id="dataformat" class="field" size="40"  value="{$arrOptions['dateformat']}"/>
            <div class="description"><lang>使用 yyyy(yy) 表示年，mm 表示月，dd 表示天。如 yyyy-mm-dd 表示 2000-1-1</lang></div></td>
          </tr>
          <tr>
            <th valign="top"><label for="db_user"><lang>时间格式</lang>:</label></th>
            <td><input type="radio" id="hr24" class="field" name="configs[timeformat]" value="1" {if $arrOptions['timeformat']==1}checked="checked"{/if}/><lang>24 小时制</lang>
			<input type="radio" id="hr12" class="field" name="configs[timeformat]" value="0" {if $arrOptions['timeformat']==0}checked="checked"{/if} /><lang>12 小时制</lang>
            <div class="description"><lang>12 小时制和24 小时制两种格式</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="timeoffset"><lang>时区</lang>:</label></th>
            <td><select name="configs[timeoffset]">
								<option value="-12" <if condition="isset( $arrCheckarray[-12] )">{$arrCheckarray[-12]}</if>>(GMT -12:00) <lang>Eniwetok, Kwajalein</lang></option>
								<option value="-11" <if condition="isset( $arrCheckarray[-11] )">{$arrCheckarray[-11]}</if>>(GMT -11:00) <lang>Midway Island, Samoa</lang></option>
								<option value="-10" <if condition="isset( $arrCheckarray[-10] )">{$arrCheckarray[-10]}</if>>(GMT -10:00) <lang>Hawaii</lang></option>
								<option value="-9"  <if condition="isset( $arrCheckarray[-9] )">{$arrCheckarray[-9]}</if>>(GMT -09:00) <lang>Alaska</lang></option>
								<option value="-8"  <if condition="isset( $arrCheckarray[-8] )">{$arrCheckarray[-8]}</if>>(GMT -08:00) <lang>Pacific Time (US &amp; Canada), Tijuana</lang></option>
								<option value="-7"  <if condition="isset( $arrCheckarray[-7] )">{$arrCheckarray[-7]}</if>>(GMT -07:00) <lang>Mountain Time (US &amp; Canada), Arizona</lang></option>
								<option value="-6"  <if condition="isset( $arrCheckarray[-6] )">{$arrCheckarray[-6]}</if>>(GMT -06:00) <lang>Central Time (US &amp; Canada), Mexico City</lang></option>
								<option value="-5"  <if condition="isset( $arrCheckarray[-5] )">{$arrCheckarray[-5]}</if>>(GMT -05:00) <lang>Eastern Time (US &amp; Canada), Bogota, Lima, Quito</lang></option>
								<option value="-4"  <if condition="isset( $arrCheckarray[-4] )">{$arrCheckarray[-4]}</if>>(GMT -04:00) <lang>Atlantic Time (Canada), Caracas, La Paz</lang></option>
								<option value="-3.5"<if condition="isset( $arrCheckarray[-3.5] )">{:$arrCheckarray[-3.5]}</if>>(GMT -03:30) <lang>Newfoundland</lang></option>
								<option value="-3" <if condition="isset( $arrCheckarray[-3] )">{$arrCheckarray[-3]}</if>>(GMT -03:00) <lang>Brassila, Buenos Aires, Georgetown, Falkland Is</lang></option>
								<option value="-2" <if condition="isset( $arrCheckarray[-2] )">{$arrCheckarray[-2]}</if>>(GMT -02:00) <lang>Mid-Atlantic, Ascension Is., St. Helena</lang></option>
								<option value="-1" <if condition="isset( $arrCheckarray[-1] )">{$arrCheckarray[-1]}</if>>(GMT -01:00) <lang>Azores, Cape Verde Islands</lang></option>
								<option value="0" <if condition="isset( $arrCheckarray[0] )">{$arrCheckarray[0]}</if>>(GMT) <lang>Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</lang></option>
								<option value="1" <if condition="isset( $arrCheckarray[1] )">{$arrCheckarray[1]}</if>>(GMT +01:00) <lang>Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</lang></option>
								<option value="2" <if condition="isset( $arrCheckarray[2] )">{$arrCheckarray[2]}</if>>(GMT +02:00) <lang>Cairo, Helsinki, Kaliningrad, South Africa</lang></option>
								<option value="3" <if condition="isset( $arrCheckarray[3] )">{$arrCheckarray[3]}</if>>(GMT +03:00) <lang>Baghdad, Riyadh, Moscow, Nairobi</lang></option>
								<option value="3.5" <if condition="isset( $arrCheckarray[3.5] )">{:$arrCheckarray[3.5]}</if>>(GMT +03:30) <lang>Tehran</lang></option>
								<option value="4" <if condition="isset( $arrCheckarray[4] )">{$arrCheckarray[4]}</if>>(GMT +04:00) <lang>Abu Dhabi, Baku, Muscat, Tbilisi</lang></option>
								<option value="4.5" <if condition="isset( $arrCheckarray[4.5] )">{:$arrCheckarray[4.5]}</if>>(GMT +04:30) <lang>Kabul</lang></option>
								<option value="5" <if condition="isset( $arrCheckarray[5] )">{$arrCheckarray[5]}</if>>(GMT +05:00) <lang>Ekaterinburg, Islamabad, Karachi, Tashkent</lang></option>
								<option value="5.5" <if condition="isset( $arrCheckarray[5.5] )">{:$arrCheckarray[5.5]}</if>>(GMT +05:30) <lang>Bombay, Calcutta, Madras, New Delhi</lang></option>
								<option value="5.75" <if condition="isset( $arrCheckarray[5.75] )">{:$arrCheckarray[5.75]}</if>>(GMT +05:45) <lang>Katmandu</lang></option>
								<option value="6" <if condition="isset( $arrCheckarray[6] )">{$arrCheckarray[6]}</if>>(GMT +06:00) <lang>Almaty, Colombo, Dhaka, Novosibirsk</lang></option>
								<option value="6.5" <if condition="isset( $arrCheckarray[6.5] )">{:$arrCheckarray[6.5]}</if>>(GMT +06:30) <lang>Rangoon</lang></option>
								<option value="7" <if condition="isset( $arrCheckarray[7] )">{$arrCheckarray[7]}</if>>(GMT +07:00) <lang>Bangkok, Hanoi, Jakarta</lang></option>
								<option value="8" <if condition="isset( $arrCheckarray[8] )">{$arrCheckarray[8]}</if>>(GMT +08:00) <lang>北京(Beijing), Hong Kong, Perth, Singapore, Taipei</lang></option>
								<option value="9" <if condition="isset( $arrCheckarray[9] )">{$arrCheckarray[9]}</if>>(GMT +09:00) <lang>Osaka, Sapporo, Seoul, Tokyo, Yakutsk</lang></option>
								<option value="9.5" <if condition="isset( $arrCheckarray[9.5] )">{:$arrCheckarray[9.5]}</if>>(GMT +09:30) <lang>Adelaide, Darwin</lang></option>
								<option value="10"  <if condition="isset( $arrCheckarray[10] )">{$arrCheckarray['10']}</if>>(GMT +10:00) <lang>Canberra, Guam, Melbourne, Sydney, Vladivostok</lang></option>
								<option value="11" <if condition="isset( $arrCheckarray[11] )">{$arrCheckarray['11']}</if>>(GMT +11:00) <lang>Magadan, New Caledonia, Solomon Islands</lang></option>
								<option value="12" <if condition="isset( $arrCheckarray[12] )">{$arrCheckarray['12']}</if>>(GMT +12:00) <lang>Auckland, Wellington, Fiji, Marshall Island</lang></option>
							</select>
            <div class="description"><lang>使用 yyyy(yy) 表示年，mm 表示月，dd 表示天。如 yyyy-mm-dd默认为: GMT +08:00</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="pmsendregdays"><lang>发短消息最少注册天数</lang>:</label></th>
            <td><input type="text" name="configs[pmsendregdays]" id="pmsendregdays" class="field" size="40"  value="{$arrOptions['pmsendregdays']}"/>
            <div class="description"><lang>注册天数少于此设置的，不允许发送短消息，0为不限制，此举为了限制机器人发广告</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="pmlimit1day"><lang>同一用户在 24 小时允许发送短消息的最大数目</lang>:</label></th>
            <td><input type="text" name="configs[pmlimit1day]" id="pmlimit1day" class="field" size="40"  value="{$arrOptions['pmlimit1day']}"/>
            <div class="description"><lang>同一用户在 24 小时内可以发送的短消息的极限，建议在 30 - 100 范围内取值，0 为不限制，此举为了限制通过机器批量发广告</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="pmfloodctrl"><lang>发短消息灌水预防</lang>:</label></th>
            <td><input type="text" name="configs[pmfloodctrl]" id="pmfloodctrl" class="field" size="40"  value="{$arrOptions['pmfloodctrl']}"/>
            <div class="description"><lang>两次发短消息间隔小于此时间，单位秒，0 为不限制，此举为了限制通过机器批量发广告</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="pmcenter"><lang>启用短消息中心</lang>:</label></th>
            <td><input type="radio" id="pmcenteryes" class="field"  name="configs[pmcenter]" value="1" onclick="Dyhb.Dom.$('sendpmseccode').style.display='block'" {if $arrOptions['pmcenter']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="pmcenterno" class="field" name="configs[pmcenter]" value="0" onclick="Dyhb.Dom.$('sendpmseccode').style.display='none'" {if $arrOptions['pmcenter']==0}checked="checked"{/if} /><lang>否</lang>
            <div class="description"><lang>是否启用短消息中心功能，不影响使用短消息接口应用程序的使用</lang></div></td>
          </tr>
          <tr>
            <th valign="top"><label for="sendpmseccode"><lang>开启发送短消息验证码</lang>:</label></th>
            <td><input type="radio" id="sendpmseccode" class="field" name="configs[sendpmseccode]" value="1" onclick="Dyhb.Dom.$('sendpmseccode').style.display='block'" {if $arrOptions['sendpmseccode']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="sendpmseccode" class="field" name="configs[sendpmseccode]" value="0" onclick="Dyhb.Dom.$('sendpmseccode').style.display='none'" {if $arrOptions['sendpmseccode']==0}checked="checked"{/if} /><lang>否</lang>
            <div class="description"><lang>是否启用短消息是否开启短消息中心发送短消息验证码，可以防止使用机器狂发短消息</lang></div></td>
          </tr>
          <tr>
            <th valign="top"><label for="changepasswordseccode"><lang>修改密码是否启用验证码</lang>:</label></th>
            <td><input type="radio" id="changepasswordseccode" class="field" name="configs[changepasswordseccode]" value="1" {if $arrOptions['changepasswordseccode']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="changepasswordseccode" class="field" name="configs[changepasswordseccode]" value="0" {if $arrOptions['changepasswordseccode']==0}checked="checked"{/if} /><lang否</lang>
            <div class="description"><lang>开启验证码，可以防止机器人破解密码</lang></div></td>
          </tr>
		  <tr id="sendpmseccode" >
            <th valign="top"><label for="changeinfoseccode"><lang>修改资料是否启用验证码</lang>:</label></th>
            <td><input type="radio" id="changeinfoseccode" class="field" name="configs[changeinfoseccode]" value="1" {if $arrOptions['changeinfoseccode']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="changeinfoseccode" class="field" name="configs[changeinfoseccode]" value="0" {if $arrOptions['changeinfoseccode']==0}checked="checked"{/if} /><lang>否</lang>
            <div class="description"><lang>开启验证码，可以防止机器人破解密码</lang></div></td>
          </tr>
          <tr id="loginseccode" >
            <th valign="top"><label for="loginseccode"><lang>登录是否启用验证码</lang>:</label></th>
            <td><input type="radio" id="loginseccode" class="field" name="configs[loginseccode]" value="1" {if $arrOptions['loginseccode']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="loginseccode" class="field" name="configs[loginseccode]" value="0" {if $arrOptions['loginseccode']==0}checked="checked"{/if} /><lang>否</lang>
            <div class="description"><lang>开启验证码，可以防止机器人破解密码</lang></div></td>
          </tr>
     </table>
	</div>

      <div id="tab_register">
      <table class="form-table full">
          <tr>
            <th valign="top"><label for="doublee"><lang>是否允许同一 Email 地址注册多个用户</lang>:</label></th>
            <td><input type="radio" id="doublee" class="field" name="configs[doublee]" value="1" {if $arrOptions['doublee']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="" class="field" name="configs[doublee]" value="0" {if $arrOptions['doublee']==0}checked="checked"{/if} /><lang>否</lang></td>
          </tr>
          <tr>
            <th valign="top"><label for="accessemail"><lang>允许的 Email 地址</lang>:</label></th>
            <td><textarea class="field" name="configs[accessemail]" cols="70" rows="5">{$arrOptions['accessemail']}</textarea>
           <div class="description"><lang>只允许使用这些域名结尾的 Email 地址注册。</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="censoremail"><lang>禁止的 Email 地址</lang>:</label></th>
            <td><textarea class="field" name="configs[censoremail]" cols="70" rows="5">{$arrOptions['censoremail']}</textarea>
           <div class="description"><lang>禁止使用这些域名结尾的 Email 地址注册。</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="censorusername"><lang>禁止的用户名</lang>:</label></th>
            <td><textarea class="field" name="configs[censorusername]" cols="70" rows="5">{$arrOptions['censorusername']}</textarea>
           <div class="description"><lang>可以设置通配符，每个关键字一行，可使用通配符 \"*\" 如 \"*版主*\"(不含引号)。</lang></div></td>
          </tr>
       </table>
	   </div>

	   <div id="tab_email">
      <table class="form-table full">
          <tr>
            <th valign="top"><label for="maildefault"><lang>邮件来源地址</lang>:</label></th>
            <td><input name="configs[maildefault]" value="{$arrOptions['maildefault']}" class="field" type="text">
			<div class="description"><lang>当发送邮件不指定邮件来源时，默认使用此地址作为邮件来源</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="mailsend"><lang>邮件发送方式</lang>:</label></th>
            <td><input name="configs[mailsend]" value="1"{if $arrOptions['mailsend']==1} checked="checked" {/if} onclick="Dyhb.Dom.$('hidden1').style.display = 'none';Dyhb.Dom.$('hidden2').style.display = 'none';" type="radio" class="field"> <lang>通过 PHP 函数的 sendmail 发送(推荐此方式)</lang><br />
			<input name="configs[mailsend]" value="2"{if $arrOptions['mailsend']==2} checked="checked" {/if} onclick="Dyhb.Dom.$('hidden1').style.display = '';Dyhb.Dom.$('hidden2').style.display = '';" type="radio" class="field"> <lang>通过 SOCKET 连接 SMTP 服务器发送(支持 ESMTP 验证)</lang><br />
			<input name="configs[mailsend]" value="3"{if $arrOptions['mailsend']==3} checked="checked" {/if} onclick="Dyhb.Dom.$('hidden1').style.display = '';Dyhb.Dom.$('hidden2').style.display = 'none';" type="radio" class="field"> <lang>通过 PHP 函数 SMTP 发送 Email(仅 Windows 主机下有效, 不支持 ESMTP 验证)</lang>
			</td>
          </tr>
		  <tbody id="hidden1"{if $arrOptions['mailsend'] == 1} style="display:none"{/if}>
		  <tr>
            <th valign="top"><label for="mailserver"><lang>SMTP 服务器</lang>:</label></th>
            <td><input name="configs[mailserver]" value="{$arrOptions['mailserver']}" class="field" type="text">
			<div class="description"><lang>设置 SMTP 服务器的地址</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="mailport"><lang>SMTP 端口</lang>:</label></th>
            <td><input name="configs[mailport]" value="{$arrOptions['mailport']}" class="field" type="text">
			<div class="description"><lang>设置 SMTP 服务器的端口，默认为 25</lang></div></td>
          </tr>
		  </tbody>
		  <tbody id="hidden2"{if $arrOptions['mailsend'] == 1 || $arrOptions['mailsend']} style="display:none"{/if}>
		  <tr>
            <th valign="top"><label for="mailauth"><lang>SMTP 服务器要求身份验证</lang>:</label></th>
            <td><input type="radio" id="mailauth" class="field" name="configs[mailauth]" value="1" {if $arrOptions['mailauth']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="" class="field" name="configs[mailauth]" value="0" {if $arrOptions['mailauth']==0}checked="checked"{/if} /><lang>否</lang>
			<div class="description"><lang>如果 SMTP 服务器要求身份验证才可以发信，请选择\"是\"</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="mailfrom"><lang>发信人邮件地址</lang>:</label></th>
            <td><input name="configs[mailfrom]" value="{$arrOptions['mailfrom']}" class="field" type="text">
			<div class="description"><lang>如果需要验证, 必须为本服务器的邮件地址。邮件地址中如果要包含用户名，格式为\"username &lt;user@domain.com&gt;\"</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="mailauth_username"><lang>SMTP 身份验证用户名</lang>:</label></th>
            <td><input name="configs[mailauth_username]" value="{$arrOptions['mailauth_username']}" class="field" type="text">
			<div class="description"><lang>当发送邮件不指定邮件来源时，默认使用此地址作为邮件来源</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="mailauth_password"><lang>SMTP 身份验证密码</lang>:</label></th>
            <td><input name="configs[mailauth_password]" value="{$arrOptions['mailauth_password']}" class="field" type="text">
			<div class="description"><lang>如果需要验证, 必须为本服务器的邮件地址。邮件地址中如果要包含用户名，格式为\"username &lt;user@domain.com&gt;\"</lang></div></td>
          </tr>
		  </tbody>
		  <tr>
            <th valign="top"><label for="maildelimiter"><lang>邮件头的分隔符</lang>:</label></th>
            <td><input name="configs[maildelimiter]"{if $arrOptions['maildelimiter'] == 1} checked="checked"{/if} value="1" type="radio" class="field"> <lang>使用 CRLF 作为分隔符</lang><br />
			<input class="field" name="configs[maildelimiter]"{if $arrOptions['maildelimiter'] == 2} checked="checked"{/if} value="0" type="radio"> <lang>使用 LF 作为分隔符</lang><br />
			<input class="field" name="configs[maildelimiter]"{if $arrOptions['maildelimiter'] == 2} checked="checked"{/if} value="2" type="radio"> <lang>使用 CR 作为分隔符</lang>
			<div class="description"><lang>请根据您邮件服务器的设置调整此参数</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="mailusername"><lang>收件人地址中包含用户名</lang>:</label></th>
            <td><input type="radio" id="mailusername" class="field" name="configs[mailusername]" value="1" {if $arrOptions['mailusername']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="" class="field" name="configs[mailusername]" value="0" {if $arrOptions['mailusername']==0}checked="checked"{/if} /><lang>否</lang>
			<div class="description"><lang>选择\"是\"将在收件人的邮件地址中包含论坛用户名</lang></div></td>
          </tr>
		  <tr>
            <th valign="top"><label for="mailsilent"><lang>屏蔽邮件发送中的全部错误提示</lang>:</label></th>
            <td><input type="radio" id="mailsilent" class="field" name="configs[mailsilent]" value="1" {if $arrOptions['mailsilent']==1}checked="checked"{/if}/><lang>是</lang>
			<input type="radio" id="" class="field" name="configs[mailsilent]" value="0" {if $arrOptions['mailsilent']==0}checked="checked"{/if} /><lang>否</lang>
			</td>
          </tr>
       </table>
	   </div>

       <p class="center">
          <input type="submit"   class="button" value="  <lang>发  布</lang>  " />
          <input type="reset" class="button" value="  <lang>重  置</lang>  " />
        </p>

      </form>

   </div>
   <!-- end content -->

<include file="public+footer">